package com.j2ee.factory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ywb
 * @since 2021/9/18
 */
public class TestBean3 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("com/j2ee/factory/Bean3.xml");
        Bean3 bean3 =(Bean3) applicationContext.getBean("bean3");
        System.out.println(bean3);
    }
}
